package service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import common.IPersistenceManager;

import entity.Company;
import entity.Equipment;

@Service
@Transactional
public class CompanyService implements ICompanyService {
	@Autowired
	IPersistenceManager persistenceManager;

	@Override
	public Collection<Company> getAllCompanies() {
		return persistenceManager.all(Company.class);
	}

	@Override
	public Collection<Equipment> getAllEquipments() {
		return persistenceManager.all(Equipment.class);
	}

}
